package cn.angleline.cloudhub.easbi.eas.entity

import java.sql.Timestamp
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

@Entity
@Table(name = "T_BG_BGDATA")
data class TBgBgData(
        @Id
        @Column(name = "FID")
        val fid: String? = null,

        @Column(name = "FBGVALUE")
        val fbgvalue: Long? = 0,

        @Column(name = "FBGACTUAL")
        val fbgactual: Long? = 0,

        @Column(name = "FBIZACTUAL")
        val fbizactual: Long? = 0,

        @Column(name = "FBGBALANCE")
        val fbgbalance: Long? = 0,

        @Column(name = "FFORMULA")
        val fformula: String? = null,

        @Column(name = "FBGPERIODID")
        val fbgperiodid: String? = null,

        @Column(name = "FBGFORMID")
        val fbgformid: String? = null,

        @Column(name = "FBGELEMENTID")
        val fbgelementid: String? = null,

        @Column(name = "FCURRENCYID")
        val fcurrencyid: String? = null,

        @Column(name = "FORGUNITID")
        val forgunitid: String? = null,

        @Column(name = "FBGSCHEMEID")
        val fbgschemeid: String? = null,

        @Column(name = "FBGTEMPLATEID")
        val fbgtemplateid: String? = null,

        @Column(name = "FBGITEMCOMBINID")
        val fbgitemcombinid: String? = null,

        @Column(name = "FISCONTROL")
        val fiscontrol: Int? = 0,

        @Column(name = "FISFLEXIBLE")
        val fisflexible: Int? = 0,

        @Column(name = "FFLEXPARAM")
        val fflexparam: Long? = null,

        @Column(name = "FCTRLTYPE")
        val fctrltype: Int? = null,

        @Column(name = "FISGROUPCTRL")
        val fisgroupctrl: Int? = 0,

        @Column(name = "FGROUPNO")
        val fgroupno: String? = null,

        @Column(name = "FSHEETNAME")
        val fsheetname: String? = null,

        @Column(name = "FCREATORID")
        val fcreatorid: String? = null,

        @Column(name = "FCREATETIME")
        val fcreatetime: Timestamp? = null,

        @Column(name = "FLASTUPDATEUSERID")
        val flastupdateuserid: String? = null,

        @Column(name = "FLASTUPDATETIME")
        val flastupdatetime: Timestamp? = null,

        @Column(name = "FISALLOWACCESS")
        val fisallowaccess: Int? = 0,

        @Column(name = "FISCTRLALLOWCHANGE")
        val fisctrlallowchange: Int? = null,

        @Column(name = "FISFROMSUPER")
        val fisfromsuper: Int? = null,

        @Column(name = "FCTRLMODEFROM")
        val fctrlmodefrom: Int? = null,

        @Column(name = "FDATASTATE")
        val fdatastate: Int? = 0
)